package com.wjh.graduation.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wjh.graduation.domain.Groups;
import com.wjh.graduation.service.GroupsService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * Created on 2022/2/8.
 *
 * @author Wu Jiahong
 */
@SpringBootTest
public class controller {

	@Autowired
	GroupsService groupsService;

	@Test
	public void test1() {
		QueryWrapper<Groups> queryWrapper = new QueryWrapper<>();
		queryWrapper.eq("user_id", 2).eq("name", "默认分组");
		Groups groups = groupsService.getOne(queryWrapper);
		System.out.println(groups);
	}
}
